<?php 
class Image extends Model{
	private $table="xdf_image";
	private $fields=array("id","name","create_time");
	
	public function upladImage($name){
		
	}
	public function addImage($name){
		$sql="INSERT INTO `$this->table` (`name`,`create_time`) 
		VALUES ('$name',NOW())";
		return $this->insert($sql);
	}
	public function getImage($image_id){
		$sql="SELECT * FROM $this->table WHERE `id`=$image_id";
		return $this->fetchRow($sql);
	}
	
}

?>